

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;light&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="https://cdn.jsdelivr.net/gh/kzwrime/kzwrime.github.io/img/favicon.png">
  <link rel="icon" type="image/png" href="https://tuchuangrrr.oss-cn-shenzhen.aliyuncs.com/img/kunnan.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="">
  <meta name="author" content="kunzh">
  <meta name="keywords" content="">
  <title>kunzh</title>

  <link  rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_pf9vaxs7x7b.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
</head>


<body>
  <header style="height: 75vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>kunzh</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/links/">
                <i class="iconfont icon-link-fill"></i>
                友链
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/shuoshuo2/">
                <i class="iconfont icon-speakernotes"></i>
                留言板
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" href="javascript:">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner intro-2" id="background" parallax=true
         style="background: url('https://rainrime.top/img/SloveniaAlps.jpg') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="container page-header text-center fade-in-up">
            <span class="h2" id="subtitle">
              
            </span>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-md">
        <div class="py-5" id="board"
          >
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2050/06/welcome/">(。・∀・)ノ</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2050/06/welcome/">
          
          
            
          
          欢迎光顾我的博客 (▽)
本博客目前还没改善的一些地方：


mermaid 流程图暂未适应手机缩放。QQ 直接打开无法加载


懒加载不支持夸克等浏览器，图片只会显示转圈圈，但点击可以查看。


黑暗模式下暂未增加部分元素自动变色。


连接到 github 的 cdn 有时会抽风，造成图片等加载不出来。


评论区恢复，右上角留言板正常


…………

        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2050-06-01 08:00" pubdate>
              2050-06-01
            </time>
          </div>
        
        
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/12/shlab/">shlab</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/12/shlab/">
          
          
            
          
          /*
 * tsh - A tiny shell program with job control
 *
 * &lt;Put your name and login ID here&gt;
 */
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;string.h&g
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-12-20 19:38" pubdate>
              2020-12-20
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E6%9D%82/">杂</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/c/">c</a>
            
              <a href="/tags/asm/">asm</a>
            
              <a href="/tags/csapp/">csapp</a>
            
              <a href="/tags/gdb/">gdb</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/11/Buflab/">buflab</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/11/Buflab/">
          
          
            
          
           BufLab
说明：

这是个 32 位的文件，请在可执行 32 位程序的环境下执行，wsl 用户可参考 https://www.cnblogs.com/TatuCz/p/10330820.html
本文的 userid 均使用 zhikun
educoder 上面那个是 2e 版的 ！！！本文是按 3e 版做的，写完才发现，不改了。思路一模一样。
以下的输入都存放在 inputX.txtinp
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-11-14 14:50" pubdate>
              2020-11-14
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E6%9D%82/">杂</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/c/">c</a>
            
              <a href="/tags/asm/">asm</a>
            
              <a href="/tags/csapp/">csapp</a>
            
              <a href="/tags/gdb/">gdb</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/11/Automatic-Parallelization-Note-01/">Automatic Parallelization Note 01</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/11/Automatic-Parallelization-Note-01/">
          
          
            
          
           Automatic Parallelization Note 01
​		并行化编译技术，特别是循环体的并行化编译技术，越来越受到重视。TLS(Thread level speculation)编译，即猜测并行化编译，可将原来顺序运行的程序并行化。
 主要问题

并行化算法:如何进行任务的划分，如何分配才是最优
资源的利用:并行程序开发者需要考虑资源如何才能有效利用，需要考虑负载平衡、软件硬件并
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-11-03 14:50" pubdate>
              2020-11-03
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E6%9D%82/">杂</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E5%B9%B6%E8%A1%8C/">并行</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/11/bomblab/">bomb lab</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/11/bomblab/">
          
          
            
          
          没有 gdb 使用经验的可以先看本博客另一篇文章  gdb 调试，里面也附有 gdb 基本指令及说明表格
以下为正文

先把反汇编输出到单独的文件里方便查看及注释
objdump -d bomb &gt; bomb.s
 phase_1
定位到这一段，基本代码及说明如下
0000000000400ee0 &lt;phase_1&gt;:
  400ee0:	48 83 ec 08         
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-11-01 14:50" pubdate>
              2020-11-01
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E6%9D%82/">杂</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/c/">c</a>
            
              <a href="/tags/asm/">asm</a>
            
              <a href="/tags/csapp/">csapp</a>
            
              <a href="/tags/gdb/">gdb</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/2020/10/gdb-stack/" target="_self">
          <img src="https://tuchuangrrr.oss-cn-shenzhen.aliyuncs.com/img/archer.svg" srcset="/img/loading.gif" alt="gdb 调试——栈">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/10/gdb-stack/">gdb 调试——栈</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/10/gdb-stack/">
          
          
            
          
          栈(stack)是程序存放数据的内存区域，是一个 LIFO (后进先出)的数据结构，用于传递函数参数，保存返回地址，保护环境，保存本地信息等。压栈即 PUSH，出栈即 POP，由于栈在内存中由上往下生长，故它们分别对应 rsp - 8 和 rsp + 8。
本文探讨使用 gdb 调试栈相关及运用 vscode 的前端调试的版本，可先往下看，各命令会有说明。
 程序源码
以一个计算 0 到 max 
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-10-17 15:46" pubdate>
              2020-10-17
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E7%BC%96%E7%A8%8B/">编程</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/c/">c</a>
            
              <a href="/tags/c/">c++</a>
            
              <a href="/tags/linux/">linux</a>
            
              <a href="/tags/vscode/">vscode</a>
            
              <a href="/tags/gdb/">gdb</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/09/%E7%BA%BF%E6%80%A7%E6%97%B6%E9%97%B4%E6%8E%92%E5%BA%8F/">线性时间排序</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/09/%E7%BA%BF%E6%80%A7%E6%97%B6%E9%97%B4%E6%8E%92%E5%BA%8F/">
          
          
            
          
           线性时间排序
由决策树模型知：任何基于比较的排序算法，在最坏情况的下界为O(nlgn)，这一复杂度快速排序，堆排序，归并排序已然达到（快排在平均情况下达到，但由于其能较好利用计算机结构而表现较佳）。能否突破这一复杂度呢？本文阐述几个不基于比较的排序算法及他们的C++实现。
开始正文之前，不妨先来看一个有意思的珠排序：

问题描述：对 [2, 5, 3, 4] 排序


注：想象算盘，[0]是一个
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-09-24 22:25" pubdate>
              2020-09-24
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E7%AE%97%E6%B3%95/">算法</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E7%AE%97%E6%B3%95/">算法</a>
            
              <a href="/tags/c/">c++</a>
            
              <a href="/tags/%E6%8E%92%E5%BA%8F/">排序</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/09/%E6%90%9C%E7%B4%A2%E6%8A%80%E6%9C%AF/">几个搜索技术</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/09/%E6%90%9C%E7%B4%A2%E6%8A%80%E6%9C%AF/">
          
          
            
          
           搜索技术
本文讲述几个常见的问题：全排列问题、子集问题、八数码问题…
 递归和排列

问题描述：打印 (0,1,2 … n-1) 共 n 个数的全排列，且返回全排列个数


范例：

input: 3
output: 
0,1,2
0,2,1
1,0,2
1,2,0
2,0,1
2,1,0
6
 用 STL 输出全排列
利用STL库函数next_permutation()，其按字典序输出下一个排
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-09-24 19:40" pubdate>
              2020-09-24
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E7%AE%97%E6%B3%95/">算法</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E7%AE%97%E6%B3%95/">算法</a>
            
              <a href="/tags/c/">c++</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/09/%E5%AE%89%E8%A3%85wsl/">wsl 下 c/c++ 安装配置</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/09/%E5%AE%89%E8%A3%85wsl/">
          
          
            
          
           记一次 wsl 下 c/c++ 安装配置
 安装 wsl
基础工作较为简单，步骤如下：

在搜索栏（win+q）中输入功能，进入启用或关闭Windows功能，勾选适用于Linux的Windows子系统。
重启电脑
打开应用商店，搜索linux，选择需要的发行版，本文以 ubuntu 20.04 为例。
从开始菜单等地方启动 wsl
（可选）cmd 中查看已安装的 linux 发行版：wslcon
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-09-11 22:30" pubdate>
              2020-09-11
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E7%BC%96%E7%A8%8B/">编程</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/c/">c</a>
            
              <a href="/tags/c/">c++</a>
            
              <a href="/tags/linux/">linux</a>
            
              <a href="/tags/vscode/">vscode</a>
            
              <a href="/tags/wsl/">wsl</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/07/python_Django/">python_DJango</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/07/python_Django/">
          
          
            
          
          随便记录点东西
 安装教程

直接参考：ps://docs.microsoft.com/zh-cn/windows/python/web-frameworks

实测问题不大，具体可以有异。具体而言两点：

如果系统软件源速度过慢先换源
如果 pip 过慢甚至超时报错，使用的时候可以临时改为 （注：碰到一下包例如pyqt, tensorflow, 要换豆瓣源，阿里源也失败。此外，早上使用清华源效果
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-07-03 21:15" pubdate>
              2020-07-03
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/others/">others</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/python/">python</a>
            
              <a href="/tags/pip/">pip</a>
            
              <a href="/tags/%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE/">环境配置</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/2020/07/102_Dijkstra/" target="_self">
          <img src="https://tuchuangrrr.oss-cn-shenzhen.aliyuncs.com/img/图论封面图2.5.png" srcset="/img/loading.gif" alt="Dijkstra BFS DFS 最短路径">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/07/102_Dijkstra/">Dijkstra BFS DFS 最短路径</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/07/102_Dijkstra/">
          
          
            
          
           Dijkstra BFS DFS 最短路径
本文用 c 实现 DFS, BFS, Dijkstra 寻找最短路径的算法。伪码和图文说明可以查看本博客的 另一篇文章。
理论上BFS和DFS找到的只是一条路径，但加以改造(加上更新路程)也是可以找最短路径的。此外除了数据结构不同，其实我的三种实现几乎一样 。。。
本文的一些数据结构的函数写着写着没用到，那就放那里吧，数据结构建议不看，如有需要可以点击
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-07-01 16:54" pubdate>
              2020-07-01
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E7%AE%97%E6%B3%95/">算法</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/c/">c</a>
            
              <a href="/tags/%E7%AE%97%E6%B3%95/">算法</a>
            
              <a href="/tags/%E5%9B%BE%E8%AE%BA/">图论</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/2020/06/101_ncurse_learn/" target="_self">
          <img src="https://tuchuangrrr.oss-cn-shenzhen.aliyuncs.com/img/ncurses炫酷图片tiny.jpg" srcset="/img/loading.gif" alt="ncurses 学习">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        <a href="/2020/06/101_ncurse_learn/">ncurses 学习</a>
      </h1>

      <p class="index-excerpt">
        <a href="/2020/06/101_ncurse_learn/">
          
          
            
          
          没找到什么中文齐整点且常用函数也齐整点的 ncurse api，做个表方便看，还不太完善，占坑先。
注：以下一般的函数都能加 w 在最前面变为对子窗口的操作，传参多一个 WINDOW* 在最前。

.td{width:5%;overflow:auto}



函数简要描述
必备&nbsp;initscr()初始化refresh()把 stdscr 写到屏幕上wrefresh(win)把 win 写
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-06-30 16:50" pubdate>
              2020-06-30
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E7%BC%96%E7%A8%8B/">编程</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/c/">c</a>
            
              <a href="/tags/ncurse/">ncurse</a>
            
          </div>
        
      </div>
    </article>
  </div>



  <nav aria-label="navigation">
    <span class="pagination" id="pagination">
      <span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/"><i class="iconfont icon-arrowright"></i></a>
    </span>
  </nav>
  
  <script>
    for (ele of document.getElementById("pagination").getElementsByTagName("a")) {
      ele.href += '#board';
    }
  </script>



              </div>
            </div>
          </div>
        </div>
      </div>
    
  </main>

  
    <a id="scroll-top-button" href="#" role="button">
      <i class="iconfont icon-arrowup" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  

  

  <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
      <i class="iconfont icon-love"></i>
      <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener">
        <span>Fluid</span></a>
        <br>
        <span>©2019 - 2020 By</span>
        <a href="https://github.com/rainrime" target="_blank" rel="nofollow noopener"><span>kunzh</span></a>
    </div>
    
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


    

    
  </div>
</footer>


<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="/js/debouncer.js" ></script>
<script  src="/js/main.js" ></script>

<!-- Plugins -->


  
    <script  src="/js/lazyload.js" ></script>
  



  



  <script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
  <script  src="/js/clipboard-use.js" ></script>



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>







  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "心能转物，即同如来&nbsp;",
      ],
      cursorChar: "_",
      typeSpeed: 70,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>





  <script  src="/js/local-search.js" ></script>
  <script>
    var path = "/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      searchFunc(path, 'local-search-input', 'local-search-result');
      this.onclick = null
    }
  </script>









  
  
    <script type="text/javascript">
      //定义获取词语下标
      var a_idx = 0;
      jQuery(document).ready(function ($) {
        //点击body时触发事件
        $("body").click(function (e) {
          //需要显示的词语
          var a = new Array("富强", "民主", "文明", "和谐", "自由", "平等", "公正", "法治", "爱国", "敬业", "诚信", "友善");
          //设置词语给span标签
          var $i = $("<span/>").text(a[a_idx]);
          //下标等于原来下标+1  余 词语总数
          a_idx = (a_idx + 1) % a.length;
          //获取鼠标指针的位置，分别相对于文档的左和右边缘。
          //获取x和y的指针坐标
          var x = e.pageX, y = e.pageY;
          //在鼠标的指针的位置给$i定义的span标签添加css样式
          $i.css({
            "z-index": 999,
            "top": y - 20,
            "left": x,
            "position": "absolute",
            "font-weight": "bold",
            "color": rand_color()
          });
          // 随机颜色
          function rand_color() {
            return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
          }
          //在body添加这个标签
          $("body").append($i);
          //animate() 方法执行 CSS 属性集的自定义动画。
          //该方法通过CSS样式将元素从一个状态改变为另一个状态。CSS属性值是逐渐改变的，这样就可以创建动画效果。
          //详情请看http://www.w3school.com.cn/jquery/effect_animate.asp
          $i.animate({
            //将原来的位置向上移动180
            "top": y - 180,
            "opacity": 0
            //1500动画的速度
          }, 1500, function () {
            //时间到了自动删除
            $i.remove();
          });
        });
      })
      ;
    </script>
  



  <script>(function (i, s, o, g, r, a, m) {
      i['DaoVoiceObject'] = r;
      i[r] = i[r] ||
        function () {
          (i[r].q = i[r].q || []).push(arguments);
        };
      i[r].l = 1 * new Date();
      a = s.createElement(o);
      m = s.getElementsByTagName(o)[0];
      a.async = 1;
      a.src = g;
      a.charset = 'utf-8';
      m.parentNode.insertBefore(a, m);
    })(window, document, 'script', ('https:' === document.location.protocol ? 'https:' : 'http:') + "//widget.daovoice.io/widget/244aa65c.js", 'daovoice');
    daovoice('init', {
      app_id: "244aa65c",
    });
    daovoice('update');
  </script>









  

  

  

  

  

  





</body>
</html>
